#include "processbutton.h"

ProcessButton::ProcessButton()
{
       mentionLabel = new QLabel;
}

void ProcessButton::enterEvent(QEvent *event)
{
    if(!this->isEnabled())
    {
        mentionLabel->setText(MENTIONLABEL);
        mentionLabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
    }else{
        mentionLabel->setText("");
    }
}

void ProcessButton::leaveEvent(QEvent *event)
{
    mentionLabel->setText(" ");
}

void ProcessButton::setMentionLabel(QLabel *label)
{
    mentionLabel  = label;
}
